Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
babel-preset-latest
Advanced tools
Babel preset including es2015, es2016, es2017.
npm install --save-dev babel-preset-latest
.babelrc
(Recommended).babelrc
{
"presets": ["latest"]
}
babel script.js --presets latest
require("babel-core").transform("code", {
presets: ["latest"]
});
es2015
boolean
, defaults to true
.
Toggles including plugins from the es2015 preset.
{
"presets": [
["latest", {
"es2015": false
}]
]
}
You can also pass options down to the es2015
preset.
{
"presets": [
["latest", {
"es2015": {
"modules": false
}
}]
]
}
Note: This also works for the other preset-year options below.
es2016
boolean
, defaults to true
.
Toggles including plugins from the es2016 preset.
es2017
boolean
, defaults to true
.
Toggles including plugins from the es2017 preset.
FAQs
Babel preset including es2015+
The npm package babel-preset-latest receives a total of 10,120 weekly downloads. As such, babel-preset-latest popularity was classified as popular.
We found that babel-preset-latest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.